package com.sean.designpatterns.create.singleton;

public class SingleObject2 {
    private static SingleObject2 singleton;

    private SingleObject2() {

    }

    public static synchronized SingleObject2 getInstance() {
        if (singleton == null) {
            singleton = new SingleObject2();
        }
        return singleton;
    }

}
